package cn.edu.lanqiao.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.lanqiao.dao.IUserEntityDao;
import cn.edu.lanqiao.entity.UserEntity;
import cn.edu.lanqiao.service.IUserInfoService;
@Service("userInfoService")
public class UserInfoServiceImpl implements IUserInfoService {
	@Resource
	private IUserEntityDao userDao;

	@Override
	public UserEntity select3(Integer userid) {
		// TODO Auto-generated method stub
		UserEntity userE=userDao.select3(userid);
		return userE;
	}

	@Override
	@Transactional(propagation = Propagation.REQUIRED)
	public List<UserEntity> select5(UserEntity user2) {
		// TODO Auto-generated method stub
		List<UserEntity> lstUser=userDao.select5(user2);
		return lstUser;
	}

}
